Skip to content

Potential fix for code scanning alert no. 2: Workflow does not contain permissions#47

Merged
aisrael merged 1 commit intomainfrom
alert-autofix-2
Apr 14, 2026
Merged

Potential fix for code scanning alert no. 2: Workflow does not contain permissions#47
aisrael merged 1 commit intomainfrom
alert-autofix-2

Conversation

@aisrael
Copy link
Copy Markdown
Owner

@aisrael aisrael commented Apr 14, 2026

Potential fix for https://github.com/aisrael/datu/security/code-scanning/2

To fix this, add an explicit permissions block in .github/workflows/ci.yml. The best minimal fix without changing functionality is to set workflow-level permissions to read-only for contents, since all jobs here are CI checks and only need repository read access (including actions/checkout).

Apply this near the top-level keys (e.g., after on: and before env:), so it applies to all jobs unless overridden later. No imports, methods, or dependencies are needed—just YAML configuration.

Suggested fixes powered by Copilot Autofix. Review carefully before merging.

…n permissions

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@aisrael aisrael marked this pull request as ready for review April 14, 2026 01:10
@aisrael aisrael merged commit 9c01ec1 into main Apr 14, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant